package com.neu.dao;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface BaseDao<T> {
	public void insert(@Param("t")T t);
	public int update(@Param("t")T t);
	public int deleteById(@Param("id")int id);
	public T selectById(@Param("id")int id);
	public List<T> selectAll();
	
	public List<T> selectList(@Param("where")String where,@Param("m")Map<String,Object> map);
	public T selectOne(@Param("where")String where,@Param("m")Map<String, Object> map);
}
